package com.wf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wf.domain.HousesInfo;
import com.wf.dto.Houses_facility_DTO;
import com.wf.dto.PageDTO;
import com.wf.vo.HouseDetailsPageVO;
import com.wf.vo.HouseDetailsVO;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @author mpk16
 * @description 针对表【houses_info】的数据库操作Mapper
 * @createDate 2024-08-04 15:51:38
 * @Entity com.wf.domain.HousesInfo
 */
public interface HousesInfoMapper extends BaseMapper<HousesInfo> {

    List<HouseDetailsPageVO> selectpageList(PageDTO pageDTO);


    @MapKey("facility_type")
    List<Map<String, Object>> getHouseFacility(Long houseId);

    Houses_facility_DTO selectAllFacilityByHousesId(Long houses_id);

}




